package com.wust.smartcity.demo.server.core.api.feign.client;


import com.wust.smartcity.common.dto.WebResponseDto;
import com.wust.smartcity.common.entity.sys.datasource.SysDataSource;
import com.wust.smartcity.demo.server.core.api.feign.client.impl.DataSourceServiceFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "admin-server",fallback = DataSourceServiceFallbackImpl.class)
public interface DataSourceService {
    @RequestMapping(value = "/api/feign/v1/DataSourceFeignApi/select",method= RequestMethod.POST, consumes = "application/json")
    WebResponseDto select(@RequestHeader(name = "x-ctx", required = true) String ctx, @RequestBody SysDataSource search);
}
